package cn.jtcoding.xhs.model.convert;

import cn.jtcoding.xhs.model.dataobject.TopicDO;
import cn.jtcoding.xhs.model.vo.TopicVO;
import org.mapstruct.Mapper;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @Author jason.tang
 * @Date 2020/8/5 12:42
 * @Desc
 */

@Mapper(componentModel = "spring", imports = {LocalDateTime.class})
public interface TopicConvert {
    TopicConvert INSTANCE = Mappers.getMapper(TopicConvert.class);

    @Mappings({})
    List<TopicVO> topicsToVO(List<TopicDO> topicDOs);
}
